/**
 * Created by shudong.msd(风骐) on 2016/5/18.
 */

'use strict';


var UrlMappings = (function(){

    var BASE_URL = 'http://h127.mzhen.cn:8080/pmm-api/api';

    return {

        'LOGIN':BASE_URL+'/login',

        // 首页
        'TOP20SEARCH':BASE_URL+'/index/top20',
        'INDEX_TV_VARIETY_KEYWORD_SEARCH':function(type){
            return BASE_URL+'/index/'+type+'/name/list';
        },
        'INDEX_STAR_KEYWORD_SEARCH':BASE_URL+'/index/star/name/list',

        // 查询
        'SEARCH_PARAM_DEFAULT':function(type){
            return BASE_URL+'/common/'+type+'/params/default';
        },
        'REGION_RESOURCE_LIST':BASE_URL+'/resource/region',
        'REGION_KEYWORD_SEARCH':BASE_URL+'/resource/region/search/list',
        'STAR_RESOURCE_LIST':BASE_URL+'/resource/star',
        'STAR_KEYWORD_SEARCH':BASE_URL+'/resource/star/search/list',
        'SEARCH_FROM_MISSION':BASE_URL+'/task/result',
        'VAGUE_SEARCH':function(type){
            return BASE_URL+'/common/'+type+'/list';
        },
        'ACCURATE_SEARCH':BASE_URL+'/index/accurate/list',
        'EXPORT_EXCEL_HOT':BASE_URL+'/index/hotexport/list',

        // 任务
        'BUILD_NEW_MISSION':BASE_URL+'/task/create',
        'UNREAD_COUNT':BASE_URL+'/task/unread/count',
        'CANCEL_MISSION':BASE_URL+'/task/delete/',
        'DELETE_MISSION':BASE_URL+'/task/delete/',
        'HISTORY_COUNT':BASE_URL+'/task/history/count',
        'ALL_MISSION_LIST':BASE_URL+'/task/all/list',
        'UNREAD_MISSION_LIST':BASE_URL+'/task/unread/list',
        'EXPORT_EXCEL_BY_ID':BASE_URL+'/index/export/task/',

        //用户
        'PWD_CHANGE':BASE_URL+'/pwd/change',
        'PWD_VALIDATE':BASE_URL+'/pwd/valid'
    };
}());


